package edu.smxy.associationmanagement.services.program.impl;

import edu.smxy.associationmanagement.domain.Program;
import edu.smxy.associationmanagement.mapper.ProgramMapper;
import edu.smxy.associationmanagement.services.program.ProgramService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
/**
* ProgramServiceImpl 服务层接口实现类
* @date  2019/04/18
* @author: : SDH
* @description: 节目管理 服务层接口实现类
*/
@Service("ProgramService")
public class ProgramServiceImpl implements ProgramService {
  @Autowired ProgramMapper programMapper;

  @Override
  public int deleteByPrimaryKey(final Integer id) {
    return this.programMapper.deleteByPrimaryKey(id);
  }

  @Override
  public int insert(final Program record) {
    return this.programMapper.insert(record);
  }

  @Override
  public int insertSelective(final Program record) {
    return this.programMapper.insertSelective(record);
  }

  @Override
  public Program selectByPrimaryKey(final Integer id) {
    return this.programMapper.selectByPrimaryKey(id);
  }

  @Override
  public int updateByPrimaryKeySelective(final Program record) {
    return this.programMapper.updateByPrimaryKeySelective(record);
  }

  @Override
  public int updateByPrimaryKey(final Program record) {
    return this.programMapper.updateByPrimaryKey(record);
  }

  @Override
  public List<Program> getProgramByEventId(final int eventid) {
    return this.programMapper.getProgramByEventId(eventid);
  }

  @Override
  public Program getProgramByEventIdAndAssId(Program program) {
    return programMapper.getProgramByEventIdAndAssId(program);
  }
}
